package com.googlecode.cswish.model;

import java.util.Map;

public class PageElementTextModel extends PageElement {
	
	private PageElement pageElement;
	
	public PageElementTextModel(PageElement pageElement) {
		this.pageElement = pageElement;
	}
	
	public Boolean getTextModel() {
		return Boolean.TRUE;
	}

	public String getId() {
		return pageElement.getId();
	}

	public void setId(String id) {
		pageElement.setId(id);
	}

	public String getName() {
		return pageElement.getName();
	}

	public void setName(String name) {
		pageElement.setName(name);
	}

	public String getLabel() {
		return pageElement.getLabel();
	}

	public void setLabel(String label) {
		pageElement.setLabel(label);
	}

	public String getClazz() {
		return pageElement.getClazz();
	}

	public void setClazz(String clazz) {
		pageElement.setClazz(clazz);
	}

	public Boolean getRequired() {
		return pageElement.getRequired();
	}

	public void setRequired(Boolean required) {
		pageElement.setRequired(required);
	}

	public Object getValue() {
		return pageElement.getValue();
	}

	public void setValue(Object value) {
		pageElement.setValue(value);
	}

	public void setTextModel(Boolean textModel) {
		pageElement.setTextModel(textModel);
	}

	public Integer getLength() {
		return pageElement.getLength();
	}

	public void setLength(Integer length) {
		pageElement.setLength(length);
	}

	public Integer getColspan() {
		return pageElement.getColspan();
	}

	public void setColspan(Integer colspan) {
		pageElement.setColspan(colspan);
	}

	public Boolean getHidden() {
		return pageElement.getHidden();
	}

	public void setHidden(Boolean hidden) {
		pageElement.setHidden(hidden);
	}

	public String getType() {
		return pageElement.getType();
	}

	public void setType(String type) {
		pageElement.setType(type);
	}

	public Map<String, Object> getExtraParams() {
		return pageElement.getExtraParams();
	}

	public void setExtraParams(Map<String, Object> extraParams) {
		pageElement.setExtraParams(extraParams);
	}

	public void addExtraParams(String name, Object value) {
		pageElement.addExtraParams(name, value);
	}

	public void removeExtraParams(String name) {
		pageElement.removeExtraParams(name);
	}

	public PageElement getParent() {
		PageElement ps = pageElement.getParent();
		return new PageElementTextModel(ps);
	}

	public void setParent(PageElement parent) {
		pageElement.setParent(parent);
	}

	public boolean equals(Object another) {
		return pageElement.equals(another);
	}

	public void merge(PageElement another) {
		pageElement.merge(another);
	}
}
